﻿using MediatR;
using SqlSugar;
using T.Common.Domain.Common;

namespace RedDragon.ERP.API.Application.Commands.Proccess
{
    /// <summary>
    /// 添加工序行
    /// </summary>
    public class CreateOperationCommand : IRequest<Result>
    {
        /// <summary>
        /// 序号
        /// </summary>        
        public int OperationId { get; set; }

        /// <summary>
        /// 顺序
        /// </summary>
        public int OrderNum { get; set; }

        /// <summary>
        /// 工艺编码(外键)
        /// </summary>
        public string ProcessRouteNo { get; set; }

        /// <summary>
        /// 工序(外键)
        /// </summary>
        public int ProcessId { get; set; }

        /// <summary>
        /// 前置期
        /// </summary>
        public decimal LeadTime { get; set; }

        /// <summary>
        /// 工价
        /// </summary>
        public decimal LabourPrice { get; set; }

        /// <summary>
        /// 废扣工价
        /// </summary>
        public decimal LostButton { get; set; }

        /// <summary>
        /// 摘要
        /// </summary>
        public string Abstract { get; set; }

        /// <summary>
        /// 状态 1-有效 2-无效
        /// </summary>
        public int OperationStatus { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatedOwner { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        public string? ExamineOwner { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ExamineTime { get; set; }
    }
}
